package com.source.baseData.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.source.baseData.entity.SlaughterHouse;
import com.source.baseData.entity.SlaughterHouseRepair;
import com.baomidou.mybatisplus.extension.service.IService;
import com.source.baseData.vo.SlaughterHouseRepairVo;
import com.source.sys.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author IceBerg777
 * @since 2021-03-21
 */
public interface SlaughterHouseRepairService extends IService<SlaughterHouseRepair> {

    IPage<SlaughterHouseRepairVo> findAll(Page<SlaughterHouseRepairVo> page);

    IPage<SlaughterHouseRepairVo> findByHouseId(String houseId, Page<SlaughterHouseRepairVo> page);

    List<SlaughterHouseRepairVo> findByHouseId(String houseId);

    List<SlaughterHouseRepairVo> findByKeyWord(String keyWord);

    List<User> findUnSavedHouseRepairsByHouseId(String houseId);

    List<SlaughterHouseRepairVo> findDistinct();

    List<SlaughterHouse> findUnAdded();
}
